package com.cl.handballreader.view;

import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;

public class MainView {
	
	private Shell shell;
	private Display display;
	
	public MainView() {
		this.display = new Display();
	}
	
	public void showView(){
		this.shell.open();
		
		while(!shell.isDisposed()){
			if(!display.readAndDispatch())
				display.sleep();
		}
		display.dispose();
	}
	
	public void setShell(Shell shell) {
		this.shell = shell;
	}

}
